﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
using Common;

namespace Server
{
    public class ServerListener : Listener
    {
        private ServerSocket server;
        public ServerListener(TcpClient client, Action<Object> h, ServerSocket server)
            :base(client, h)
        {
            this.server = server;
        }

        public override void Run()
        {
            base.Run();

            server.DeleteFromClientListeners(this);
        }
    }
}
